﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:Orbifold_G2_Core="clr-namespace:Orbifold.G2.Core;assembly=Orbifold.G2.Core"
	mc:Ignorable="d"
	x:Class="CI.UI.Prototypes.CollapsingIndustryJob"
	x:Name="UserControl"
	d:DesignWidth="320" d:DesignHeight="250">

	<Grid x:Name="LayoutRoot">
		<Expander IsExpanded="True">
			<Expander.Header>
				<TextBlock FontSize="16" FontWeight="ExtraBold"  Text="{Binding Path=Output.Item.TypeName}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"/>
			</Expander.Header>
    <Grid>
        <Grid.RowDefinitions>
        	<RowDefinition Height="5"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
		<Rectangle Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="0">
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="Black" Offset="0"/>
					<GradientStop Color="#FF333333" Offset="1"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
        
        <Label Grid.Row="1" Grid.Column="0">Runs</Label>
        <Label Grid.Row="2" Grid.Column="0">Output</Label>
        <Label Grid.Row="3" Grid.Column="0">Time</Label>
        <TextBox Grid.Row="1" Grid.Column="1" Margin="2" Width="75" HorizontalAlignment="Left" Text="{Binding Path=Runs}"/>
        <TextBox Grid.Row="2" Grid.Column="1" Margin="2" Width="110" HorizontalAlignment="Left" Text="{Binding Path=Output.Total}"/>
        <TextBlock Grid.Row="3" Margin="2" Grid.Column="1" Text="{Binding Path=Time.Total}"/>
    </Grid>
		</Expander>
	</Grid>
</UserControl>